/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.edmo.fastener.jms;

import org.springframework.beans.factory.annotation.Autowired;

/**
 *
 * @author obelog
 */
public class OrderService {
    static int orderSequence = 1;
	
	@Autowired
	private OrderSender orderSender;
	public void setOrderSender(OrderSender orderSender){
		this.orderSender = orderSender;
	}
	
	public void sendOrder(String filePath, String fileName, String orderId)
	{
		Order order = new Order(filePath, fileName, orderId);
		orderSender.sendOrder(order);
	}
}
